package edu.cdnu.common.dto;

import java.util.List;

/**
 * 用于存放   学院、专业、班级   整合到一起的数据
 * @author ASUS AsingZ
 */
public class DepartmentSubjectClass<T> {
	private Integer id;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 父id，所属的上一级的Id
	 */
	private Integer parentId;
	/**
	 * 描述
	 */
	private String decription;
	/**
	 * 子节点
	 */
	private List<T> children;
	
	
	public DepartmentSubjectClass(Integer id, String name, Integer parentId, String decription, List<T> children) {
		super();
		this.id = id;
		this.name = name;
		this.parentId = parentId;
		this.decription = decription;
		this.children = children;
	}

	public DepartmentSubjectClass() {
		super();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getDecription() {
		return decription;
	}

	public void setDecription(String decription) {
		this.decription = decription;
	}

	public List<T> getChildren() {
		return children;
	}

	public void setChildren(List<T> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "DepartmentSubjectClass [id=" + id + ", name=" + name + ", parentId=" + parentId + ", decription="
				+ decription + ", children=" + children + "]";
	}
	
}
